#ifndef __RULER_H
#define __RULER_H

#include <vector>
#include "structures.h"

using namespace std;

/**
 * Calculates distance from one cell to all other cells of the game field using
 * breadth-first search
 */
class ruler
{
protected:
	const game_settings& settings;
	const game_field& field;
public:
	ruler(const game_settings& settings, const game_field& field);
	void measure_distances(int from_x, int from_y, int max_distance, vector<vector<int>>& distances);
};

#endif